home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / emacs-lock.elc.z / emacs-lock.elc
Emacs Compiled Lisp  |  1998-10-28  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 61 74 20 4d |ggum.no |on Sat M|
|00000030| 61 79 20 31 38 20 31 36 | 3a 32 30 3a 31 38 20 31 |ay 18 16|:20:18 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 68 6f 6d 65 2f | 67 64 2f 67 6e 75 2f 65 |e /home/|gd/gnu/e|
|00000060| 6d 61 63 73 2f 31 39 2e | 30 2f 6c 69 73 70 2f 65 |macs/19.|0/lisp/e|
|00000070| 6d 61 63 73 2d 6c 6f 63 | 6b 2e 65 6c 0a 3b 3b 3b |macs-loc|k.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 33 30 2e 39 39 2e | 31 2e 0a 3b 3b 3b 20 62 |9.30.99.|1..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 2e | 32 39 22 29 29 29 0a 20 |ion "19.|29"))). |
|00000190| 20 20 20 28 65 72 72 6f | 72 20 22 60 65 6d 61 63 | (erro|r "`emac|
|000001a0| 73 2d 6c 6f 63 6b 2e 65 | 6c 27 20 77 61 73 20 63 |s-lock.e|l' was c|
|000001b0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001c0| 73 20 31 39 2e 32 39 20 | 6f 72 20 6c 61 74 65 72 |s 19.29 |or later|
|000001d0| 22 29 29 0a 0a 0a 23 40 | 37 30 20 57 68 65 74 68 |"))...#@|70 Wheth|
|000001e0| 65 72 20 65 6d 61 63 73 | 20 69 73 20 6c 6f 63 6b |er emacs| is lock|
|000001f0| 65 64 20 74 6f 20 70 72 | 65 76 65 6e 74 20 65 78 |ed to pr|event ex|
|00000200| 69 74 69 6e 67 2e 20 20 | 53 65 65 20 60 63 68 65 |iting. |See `che|
|00000210| 63 6b 2d 65 6d 61 63 73 | 2d 6c 6f 63 6b 27 2e 1f |ck-emacs|-lock'..|
|00000220| 0a 28 64 65 66 76 61 72 | 20 6c 6f 63 6b 2d 65 6d |.(defvar| lock-em|
|00000230| 61 63 73 2d 66 72 6f 6d | 2d 65 78 69 74 69 6e 67 |acs-from|-exiting|
|00000240| 20 6e 69 6c 20 28 23 24 | 20 2e 20 34 37 35 29 29 | nil (#$| . 475))|
|00000250| 0a 28 6d 61 6b 65 2d 76 | 61 72 69 61 62 6c 65 2d |.(make-v|ariable-|
|00000260| 62 75 66 66 65 72 2d 6c | 6f 63 61 6c 20 28 71 75 |buffer-l|ocal (qu|
|00000270| 6f 74 65 20 6c 6f 63 6b | 2d 65 6d 61 63 73 2d 66 |ote lock|-emacs-f|
|00000280| 72 6f 6d 2d 65 78 69 74 | 69 6e 67 29 29 0a 23 40 |rom-exit|ing)).#@|
|00000290| 31 33 34 20 43 68 65 63 | 6b 20 69 66 20 76 61 72 |134 Chec|k if var|
|000002a0| 69 61 62 6c 65 20 60 6c | 6f 63 6b 2d 65 6d 61 63 |iable `l|ock-emac|
|000002b0| 73 2d 66 72 6f 6d 2d 65 | 78 69 74 69 6e 67 27 20 |s-from-e|xiting' |
|000002c0| 69 73 20 74 20 66 6f 72 | 20 61 6e 79 20 62 75 66 |is t for| any buf|
|000002d0| 66 65 72 2e 0a 49 66 20 | 61 6e 79 20 74 20 69 73 |fer..If |any t is|
|000002e0| 20 66 6f 75 6e 64 2c 20 | 73 69 67 6e 61 6c 20 65 | found, |signal e|
|000002f0| 72 72 6f 72 20 61 6e 64 | 20 64 69 73 70 6c 61 79 |rror and| display|
|00000300| 20 74 68 65 20 6c 6f 63 | 6b 65 64 20 62 75 66 66 | the loc|ked buff|
|00000310| 65 72 20 6e 61 6d 65 2e | 1f 0a 28 64 65 66 61 6c |er name.|..(defal|
|00000320| 69 61 73 20 27 63 68 65 | 63 6b 2d 65 6d 61 63 73 |ias 'che|ck-emacs|
|00000330| 2d 6c 6f 63 6b 20 23 5b | 6e 69 6c 20 22 c0 20 19 |-lock #[|nil ". .|
|00000340| 8a 09 85 21 00 09 40 71 | 88 5c 6e 83 19 00 c3 c4 |...!..@q|.\n.....|
|00000350| c5 20 5c 22 88 82 04 00 | 09 41 89 11 84 08 00 c6 |. \"....|.A......|
|00000360| 2a 87 22 20 5b 62 75 66 | 66 65 72 2d 6c 69 73 74 |*." [buf|fer-list|
|00000370| 20 62 75 66 66 65 72 73 | 20 6c 6f 63 6b 2d 65 6d | buffers| lock-em|
|00000380| 61 63 73 2d 66 72 6f 6d | 2d 65 78 69 74 69 6e 67 |acs-from|-exiting|
|00000390| 20 65 72 72 6f 72 20 22 | 45 6d 61 63 73 20 69 73 | error "|Emacs is|
|000003a0| 20 6c 6f 63 6b 65 64 20 | 66 72 6f 6d 20 65 78 69 | locked |from exi|
|000003b0| 74 20 64 75 65 20 74 6f | 20 62 75 66 66 65 72 3a |t due to| buffer:|
|000003c0| 20 25 73 22 20 62 75 66 | 66 65 72 2d 6e 61 6d 65 | %s" buf|fer-name|
|000003d0| 20 6e 69 6c 5d 20 34 20 | 28 23 24 20 2e 20 36 36 | nil] 4 |(#$ . 66|
|000003e0| 30 29 5d 29 0a 23 40 31 | 30 30 20 54 6f 67 67 6c |0)]).#@1|00 Toggl|
|000003f0| 65 20 60 6c 6f 63 6b 2d | 65 6d 61 63 73 2d 66 72 |e `lock-|emacs-fr|
|00000400| 6f 6d 2d 65 78 69 74 69 | 6e 67 27 20 62 65 74 77 |om-exiti|ng' betw|
|00000410| 65 65 6e 20 74 20 61 6e | 64 20 6e 69 6c 20 66 6f |een t an|d nil fo|
|00000420| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 62 75 |r the cu|rrent bu|
|00000430| 66 66 65 72 2e 0a 53 65 | 65 20 60 63 68 65 63 6b |ffer..Se|e `check|
|00000440| 2d 65 6d 61 63 73 2d 6c | 6f 63 6b 27 2e 1f 0a 28 |-emacs-l|ock'...(|
|00000450| 64 65 66 61 6c 69 61 73 | 20 27 74 6f 67 67 6c 65 |defalias| 'toggle|
|00000460| 2d 65 6d 61 63 73 2d 6c | 6f 63 6b 20 23 5b 6e 69 |-emacs-l|ock #[ni|
|00000470| 6c 20 22 08 83 09 00 c1 | 10 82 0b 00 c2 10 08 83 |l ".....|........|
|00000480| 13 00 c3 c4 21 87 c3 c5 | 21 87 22 20 5b 6c 6f 63 |....!...|!." [loc|
|00000490| 6b 2d 65 6d 61 63 73 2d | 66 72 6f 6d 2d 65 78 69 |k-emacs-|from-exi|
|000004a0| 74 69 6e 67 20 6e 69 6c | 20 74 20 6d 65 73 73 61 |ting nil| t messa|
|000004b0| 67 65 20 22 45 6d 61 63 | 73 20 69 73 20 6e 6f 77 |ge "Emac|s is now|
|000004c0| 20 6c 6f 63 6b 65 64 20 | 66 72 6f 6d 20 65 78 69 | locked |from exi|
|000004d0| 74 69 6e 67 2e 22 20 22 | 45 6d 61 63 73 20 69 73 |ting." "|Emacs is|
|000004e0| 20 6e 6f 77 20 75 6e 6c | 6f 63 6b 65 64 2e 22 5d | now unl|ocked."]|
|000004f0| 20 32 20 28 23 24 20 2e | 20 31 30 30 33 29 20 6e | 2 (#$ .| 1003) n|
|00000500| 69 6c 5d 29 0a 28 61 64 | 64 2d 68 6f 6f 6b 20 28 |il]).(ad|d-hook (|
|00000510| 71 75 6f 74 65 20 6b 69 | 6c 6c 2d 65 6d 61 63 73 |quote ki|ll-emacs|
|00000520| 2d 68 6f 6f 6b 29 20 28 | 71 75 6f 74 65 20 63 68 |-hook) (|quote ch|
|00000530| 65 63 6b 2d 65 6d 61 63 | 73 2d 6c 6f 63 6b 29 29 |eck-emac|s-lock))|
|00000540| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+